import random
import card
import defines

class Deck:
    def __init__(self, deck_size=1):

        self._deck = []
        
        for d in range(deck_size):
            for i in range(len(defines.suit)):
                for j in range(len(defines.face)):
                    self._deck.append(card.Card(j, i))

    def shuffle(self):
        random.shuffle(self._deck)

    def pretty_print(self):
        for i in range(len(self._deck)):
            self._deck[i].display()
            
    def deal_card(self):
        return self._deck.pop()